<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2021-11-23
  Time: 11:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>已经存在的cookie</title>
</head>
<body>
  <%
//      Cookie c=new Cookie("visit","1");
//      c.setMaxAge();
//      response.addCookie(c);
      Cookie cr[]=request.getCookies();
      for(int i=0;cr!=null&&i<cr.length;i++){
          out.print("<h1>"+cr[i].getName()+"="+cr[i].getValue()+"</h1>");
      }
  %>
</body>
</html>
